home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1994 November: Tool Chest / Dev.CD Nov 94.toast / Tool Chest / Interapplication Communication / AE Interfaces / RIncludes / AEWideUserTermTypes.r < prev    next >
Encoding:
Text File  |  1993-12-08  |  9.0 KB  |  246 lines  |  [TEXT/MPS ]

  1. ////////////////////////////////////////////////////////////////////////////////
  2. // Copyright © 1993 Apple Computer, Inc. All rights reserved.
  3. ////////////////////////////////////////////////////////////////////////////////
  4.  
  5. /* Resource Descriptions for                                    */
  6. /* Apple Event User Terminology Resources                        */
  7. /* This version uses a wide format for groups of booleans        */
  8.  
  9. #ifndef __AEWIDEUSERTERMTYPES__
  10. #define __AEWIDEUSERTERMTYPES__ 1
  11.  
  12.  
  13. #include "SysTypes.r"
  14. #define kAEUserTerminology            'aeut'
  15. #define kAETerminologyExtension        'aete'
  16. #define kAEScriptingSizeResource    'scsz'
  17.  
  18. // "reserved" needs to be defined to be false for resources
  19. //   but undef'ed for type definitions.  We preserve its state
  20. //   and undef it here.
  21.  
  22. #undef reserved
  23.  
  24. /* Description of the Apple Event User Terminology resource        */
  25. /* This resource is provided by Apple Computer, Inc.            */
  26. type kAEUserTerminology {
  27.         hex byte;                                            /* major version in BCD        */
  28.         hex byte;                                            /* minor version in BCD        */
  29.         integer        Language, english = 0, japanese = 11;    /* language code            */
  30.         integer        Script, roman = 0;                        /* script code                */
  31.         integer = $$Countof(Suites);
  32.         array Suites {
  33.                 pstring;                                    /* suite name                */
  34.                 pstring;                                    /* suite description        */
  35.                 align word;                                    /* alignment                */
  36.                 literal longint;                            /* suite ID                    */
  37.                 integer;                                    /* suite level                */
  38.                 integer;                                    /* suite version            */
  39.                 integer = $$Countof(Events);
  40.                 array Events {
  41.                     pstring;                                /* event name                */
  42.                     pstring;                                /* event description        */
  43.                     align word;                                /* alignment                */
  44.                     literal longint;                        /* event class                */
  45.                     literal longint;                        /* event ID                    */
  46.                     literal longint        noReply = 'null';    /* reply type                */
  47.                     pstring;                                /* reply description        */
  48.                     align word;                                /* alignment                */
  49.                     wide array [1] {
  50.                         boolean    replyRequired,                    /* if the reply is          */
  51.                                 replyOptional;                    /*   required               */
  52.                         boolean singleItem,                        /* if the reply must be a   */
  53.                                 listOfItems;                    /*   list                    */                                        
  54.                         boolean notEnumerated,                    /* if the type is            */
  55.                                 enumerated;                        /*     enumerated                */
  56.                         boolean    reserved;                        /* these 13 bits are         */
  57.                         boolean    reserved;                        /*   reserved; set them        */
  58.                         boolean    reserved;                        /*   to "reserved"             */
  59.                         boolean    reserved;
  60.                         boolean    reserved;
  61.                     /* the following bits are reserved for localization, can we? */
  62.                         boolean    reserved;
  63.                         boolean    reserved;
  64.                         boolean    reserved;
  65.                         boolean    reserved;
  66.                         boolean    verbEvent,                        /* for Japanese; nonVerb is */
  67.                                 nonVerbEvent;                    /*  is used as an expr v.s. */
  68.                                                                 /*  v.s. verb is a command  */
  69.                             /* the following 3 bits are considered as a part of look up key */
  70.                         boolean    reserved;
  71.                         boolean    reserved;
  72.                         boolean    reserved;
  73.                         };
  74.                     literal longint        noParams = 'null';    /* direct param type        */
  75.                     pstring;                                /* direct param description    */
  76.                     align word;                                /* alignment                */
  77.                     wide array [1] {
  78.                         boolean    directParamRequired,            /* if the direct param         */
  79.                                 directParamOptional;            /*   is required              */
  80.                         boolean singleItem,                        /* if the param must be a   */
  81.                                 listOfItems;                    /*   list                    */                                        
  82.                         boolean notEnumerated,                    /* if the type is            */
  83.                                 enumerated;                        /*     enumerated                */
  84.                         boolean    doesntChangeState,                /* if the event changes     */
  85.                                 changesState;                    /*   server's state            */
  86.                         boolean    reserved;                        /* these 12 bits are         */
  87.                         boolean    reserved;                        /*   reserved; set them        */
  88.                         boolean    reserved;                        /*   to "reserved"             */
  89.                         boolean    reserved;
  90.                         boolean    reserved;
  91.                         boolean    reserved;
  92.                         boolean    reserved;
  93.                         boolean    reserved;
  94.                         boolean    reserved;
  95.                         boolean    reserved;
  96.                         boolean    reserved;
  97.                         boolean    reserved;
  98.                     };
  99.                     integer = $$Countof(OtherParams);
  100.                     array OtherParams {
  101.                         pstring;                            /* parameter name            */
  102.                         align word;                            /* alignment                */
  103.                         literal longint;                    /* parameter keyword        */
  104.                         literal longint;                    /* parameter type            */
  105.                         pstring;                            /* parameter description    */
  106.                         align word;                            /* alignment                */
  107.                         wide array [1] {
  108.                             boolean    required,
  109.                                     optional;                    /* if param is optional        */
  110.                             boolean singleItem,                    /* if the param must be a   */
  111.                                     listOfItems;                /*   list                    */                                        
  112.                             boolean notEnumerated,                /* if the type is            */
  113.                                     enumerated;                    /*     enumerated                */
  114.                             boolean    reserved;
  115.                             boolean    reserved;                    /* these bits are             */
  116.                             boolean    reserved;                    /*   reserved; set them        */
  117.                             boolean    reserved;                    /*   to "reserved"             */
  118.                             boolean    reserved;
  119.                         /* the following bits are reserved for localization */
  120.                             boolean    reserved;
  121.                             boolean    reserved;
  122.                             boolean    reserved;
  123.                             boolean    reserved;
  124.                             boolean    reserved;
  125.                             boolean    prepositionParam,            /* for Japanese; labeld     */
  126.                                     labeledParam;                /*  param name comes before */
  127.                                                                 /*  the param value            */
  128.                                 /* the following 3 bits are considered as a part of look up key */
  129.                             boolean    notFeminine,                /* feminine                    */
  130.                                     feminine;
  131.                             boolean    notMasculine,                /* masculine                */    
  132.                                     masculine;                    
  133.                             boolean    singular,
  134.                                     plural;                        /* plural                    */
  135.                         };
  136.                     };
  137.                 };
  138.                 integer = $$Countof(Classes);
  139.                 array Classes {
  140.                     pstring;                                /* class name                */
  141.                     align word;                                /* alignment                */
  142.                     literal longint;                        /* class ID                    */
  143.                     pstring;                                /* class description        */
  144.                     align word;                                /* alignment                */
  145.                     integer = $$Countof(Properties);
  146.                     array Properties {
  147.                         pstring;                            /* property name            */
  148.                         align word;                            /* alignment                */
  149.                         literal longint;                    /* property ID                */
  150.                         literal longint;                    /* property class            */
  151.                         pstring;                            /* property description        */
  152.                         align word;                            /* alignment                */
  153.                         wide array [1] {
  154.                             boolean    reserved;                    /* reserved                    */
  155.                             boolean singleItem,                    /* if the property must be  */
  156.                                     listOfItems;                /*   a list                    */                                        
  157.                             boolean notEnumerated,                /* if the type is            */
  158.                                     enumerated;                    /*     enumerated                */
  159.                             boolean    readOnly,                    /* can only read it            */
  160.                                     readWrite;                    /* can read or write it        */
  161.                             boolean    reserved;                    /* these 12 bits are         */
  162.                             boolean    reserved;                    /*   reserved; set them        */
  163.                             boolean    reserved;                    /*   to "reserved"             */
  164.                             boolean    reserved;
  165.                     /* the following bits are reserved for localization */
  166.                             boolean    reserved;
  167.                             boolean    reserved;
  168.                             boolean    reserved;
  169.                             boolean    reserved;
  170.                             boolean    reserved;
  171.                                 /* the following 3 bits are considered as a part of look up key */
  172.                                             /* what if both feminine and masculine? */
  173.                             boolean    notFeminine,                /* feminine                    */
  174.                                     feminine;
  175.                             boolean    notMasculine,                /* masculine                */    
  176.                                     masculine;                    
  177.                             boolean    singular,
  178.                                     plural;                        /* plural                    */
  179.                         };
  180.                     };
  181.                     integer = $$Countof(Elements);
  182.                     array Elements {
  183.                         literal longint;                    /* element class            */
  184.                         integer = $$Countof(KeyForms);
  185.                         array KeyForms {                    /* list of key forms        */
  186.                             literal longint
  187.                             formAbsolutePosition = 'indx',
  188.                             formName = 'name';                /* key form ID                */
  189.                         };
  190.                     };
  191.                 };
  192.                 integer = $$Countof(ComparisonOps);
  193.                 array ComparisonOps {
  194.                     pstring;                                /* comparison operator name    */
  195.                     align word;                                /* alignment                */
  196.                     literal longint;                        /* comparison operator ID    */
  197.                     pstring;                                /* comparison comment        */
  198.                     align word;                                /* alignment                */
  199.                 };
  200.                 integer = $$Countof(Enumerations);
  201.                 array Enumerations {                        /* list of Enumerations        */
  202.                     literal longint;                        /* Enumeration ID            */
  203.                     integer = $$Countof(Enumerators);
  204.                     array Enumerators {                        /* list of Enumerators        */
  205.                         pstring;                            /* Enumerator name            */
  206.                         align word;                            /* alignment                */
  207.                         literal longint;                    /* Enumerator ID            */
  208.                         pstring;                            /* Enumerator comment        */
  209.                         align word;                            /* alignment                */
  210.                     };
  211.                 };
  212.             };
  213.         };
  214.         
  215. /* AEUT and AETE have the same format                        */
  216.  
  217. type kAETerminologyExtension as kAEUserTerminology;
  218.  
  219. type kAEScriptingSizeResource {
  220.     boolean                dontReadExtensionTerms, readExtensionTerms;
  221.     boolean                findAppBySignature,        dontFindAppBySignature;
  222.     boolean                reserved;
  223.     boolean                reserved;
  224.     boolean                reserved;
  225.     boolean                reserved;
  226.     boolean                reserved;
  227.     boolean                reserved;
  228.     boolean                reserved;
  229.     boolean                reserved;
  230.     boolean                reserved;
  231.     boolean                reserved;
  232.     boolean                reserved;
  233.     boolean                reserved;
  234.     boolean                reserved;
  235.     boolean                reserved;
  236.     /* Memory sizes are in bytes. Zero means use default. */
  237.     unsigned longint    minStackSize;
  238.     unsigned longint    preferredStackSize;
  239.     unsigned longint    maxStackSize;
  240.     unsigned longint    minHeapSize;
  241.     unsigned longint    preferredHeapSize;
  242.     unsigned longint    maxHeapSize;    
  243. };
  244.  
  245. #define reserved false
  246. #endif